package com.zhangzhan.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.gulimallcommcon.util.PageUtils;
import com.zhangzhan.gulimallcommcon.util.R;
import com.zhangzhan.gulimallproduct.entity.CategoryEntity;
import com.zhangzhan.gulimallproduct.vos.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhangzhan
 * @email sunlightcs@gmail.com
 * @date 2024-06-12 16:45:44
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * @description 查询所有商品分类展示树形结构
     *
     * @return com.zhangzhan.gulimallcommcon.util.R
     * @author zhangyiheng
     * @date 2024/6/13 2:35
     */
    R listTree();

    void removeMenuByIds(List<Long> longs);

    Long[] getCatelogIdPath(Long catelogId);

    void updateByIdAndintermediateTable(CategoryEntity category);

    Map<String, List<Catelog2Vo>> indexCategory();

    List<CategoryEntity> listLevel1();


}

